@extends('admin.main')
@section('body')
    <div class="main-title">
        <h2>店铺广播</h2>
    </div>
    <div class="tab-wrap">
        <div class="tab-content">
            <form action="" method="post" class="form-horizontal">
                <!-- 基础 -->
                <div id="tab1" class="tab-pane in tab1">
                    <div class="form-item">
                        <label class="item-label">
                            广播内容<span class="check-tips">（请输入您要广播的内容，该内容会在用户端页面显示）</span>
                        </label>
                        <div class="controls">
                            <label class="textarea input-large">
                                <textarea name="msg">{{isset($info['msg']) ? $info['msg'] : ''}}</textarea>
                            </label>
                        </div>
                    </div>
                    <div class="form-item">
                        <label class="item-label">
                            发布<span class="check-tips">（注意：发布前请注意检查信息是否有误）</span>
                        </label>
                        <div class="controls">
                            <label class="inline radio"><input type="radio" name="status" value="0" @if($info['status'] == 0 ) checked @endif>否</label>
                            <label class="inline radio"><input type="radio" name="status" value="1" @if($info['status'] == 1 ) checked @endif>是</label>
                        </div>
                    </div>
                    <div class="form-item">
                        <input type="hidden" name="id" value="{{isset($info['id']) ? $info['id'] : ''}}">
                        <input type="hidden" name="shop_id" value="{{$shop_id}}">
                        <input type="hidden" name="admin_id" value="{{$admin_id}}">
                        <button type="submit" id="submit" class="btn submit-btn ajax-post"
                                target-form="form-horizontal">确
                            定
                        </button>
                        <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

@endsection
